.width {
    width: 1100px;
}

#home::before {
    content: "";
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(243, 243, 243);
}

.Rotation {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.Rotation img {
    width: 100%;
}

.Rotation .rot-greet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.Rotation .rot-greet .greet {
    width: 100%;
    color: white;
    transform: translateY(-55px);
}

.Rotation .rot-greet .greet span {
    font-size: 40px;
    transition: 0.3s;
}

.Rotation .rot-greet .greet p {
    width: 400px;
    font-size: 14px;
    line-height: 20px;
    margin-top: 15px;
}

.Rotation .rot-greet .icon {
    width: 100%;
    display: flex;
}

.Rotation .rot-greet .icon i {
    position: relative;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 50px;
    color: white;
}

.Rotation .rot-greet .icon i:nth-child(2) {
    font-size: 2em;
}

.Rotation .rot-greet .icon i p {
    position: absolute;
    transform: translateY(25px);
    font-size: 15px;
    display: block;
    display: none;
    width: 300px;
    text-align: center;
}

.Rotation .rot-greet .icon i:hover p {
    display: block;
}

.text {
    position: absolute;
    opacity: 0;
}

/* 首页内容 */
#main {
    position: relative;
    padding-top: 80px;
    margin: auto;
    /* border: 1px solid red; */
}

#main .main-mage,
#state,
#article {
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
    background-color: white;
    border-radius: 20px;
}

#main .main-mage {
    float: left;
    width: 780px;
    padding: 20px 40px;
    margin-bottom: -20px;
    box-sizing: border-box;
}

/* 评论输入框 */
#main .main-mage .textarea {
    position: relative;
    background: rgb(231, 231, 231);
    border-radius: 10px;
    border: 1px solid rgba(1, 140, 233, 0);
    display: flex;
    overflow: hidden;
    border-radius: 10px;
}

#main .main-mage .textarea .input {
    width: 100%;
    padding: 15px;
    height: 80px;
    border: none;
    outline: none;
    resize: none;
    color: #333;
    font-size: 14px;
    background: none;
    margin-right: 5px;
    line-height: 25px;
    font-weight: 100px;
    letter-spacing: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.08) rgba(0, 0, 0, 0);
}

#main .main-mage .textarea .input::-webkit-scrollbar {
    width: 5px;
    border-radius: 5px;
}

#main .main-mage .textarea .input::-webkit-scrollbar-track {
    background: none;
}

#main .main-mage .textarea .input::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 5px;
}

#main .main-mage .textarea .placeholder {
    top: 0;
    margin: 20px;
    padding-left: 2px;
    color: #aaa;
    position: absolute;
}

/* 上传的图预览 */
#main .main-mage .preview {
    margin-top: 15px;
    display: flex;
    line-clamp: 2;
}

#main .main-mage .preview-son {
    position: relative;
    /* display: inline-block; */
    width: 15.96%;
    height: 100px;
    margin-right: 5px;
    overflow: hidden;
    border-radius: 10px;
}

#main .main-mage .preview-son::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: zoom-in;
    background: rgba(0, 0, 0, 0.05);
    display: none;
}

#main .main-mage .preview-son:hover::before {
    display: block;
}

#main .main-mage .preview-son:last-child {
    margin-right: 0;
}

#main .main-mage .preview-son .img img {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    cursor: zoom-in;
}

#main .main-mage .preview-son .img-icon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    padding: 2px;
    font-size: 0.8em;
    cursor: pointer;
    color: white;
    margin: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1em;
}

#main .main-mage .preview-son .img-icon:hover {
    background: rgba(1, 140, 233, 0.1);
    color: rgba(1, 140, 233, 0.8);
}

/* 功能按钮 */
#function-but {
    position: relative;
    height: 40px;
    margin-top: 10px;
    /* border-top: 1px solid #333; */
}

#function-but .but {
    margin-right: 15px;
    border: none;
    background: none;
    line-height: 40px;
}

#function-but .biaoqing,
.huaban {
    font-size: 1.8em;
    color: #999;
    cursor: pointer;
}

/* .biaoqing-but:hover {
  background: rgba(5, 132, 216, 0.1);
}
.biaoqing-but:hover .biaoqing {
  color: rgba(1, 140, 233, 0.8);
} */

/* 发送 */
.comment {
    position: absolute;
    right: 0;
    width: 100px;
    height: 35px;
    cursor: pointer;
    background: #999;
    border: none;
    color: white;
    border-radius: 35px;
    background-color: rgba(1, 140, 233, 0.8);
}

.comment:hover {
    opacity: 0.8;
}

@media screen and (max-width: 370px) {
    .Rotation .rot-greet .greet p {
        width: 230px !important;
        font-size: 6px !important;
        line-height: 15px !important;
        margin-top: 5px !important;
    }

    .Rotation .rot-greet .icon {
        transform: translateY(-30px) !important;
        justify-content: center;
        width: 100vh;
    }

    .Rotation .rot-greet .icon i p {
        transform: translateY(-15px) !important;
    }
}

@media screen and (max-width: 600px) {
    .nav {
        height: 50px;
    }

    .nav ul {
        position: absolute;
        top: 0;
        right: 0;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }

    .nav ul li {
        display: none;
    }

    .nav ul .control {
        display: flex;
    }

    .Rotation .rot-greet {
        width: 90%;
    }

    .Rotation .rot-greet .greet span {
        font-size: 20px !important;
        font-weight: bold;
    }

    .Rotation .rot-greet .greet p {
        width: 300px;
        font-size: 12px;
        line-height: 20px;
        margin-top: 10px;
    }

    .Rotation .rot-greet .icon {
        transform: translateY(-15px);
        margin-left: 20px;
    }

    .Rotation .rot-greet .icon i {
        font-size: 1em;
    }

    .Rotation .rot-greet .icon i:nth-child(2) {
        font-size: 1.4em;
    }

    .Rotation .rot-greet .icon i p {
        transform: translateY(15px);
        font-size: 12px;
        width: 300px;
        text-align: center;
    }
}

@media screen and (max-width: 830px) {
    .Rotation .rot-greet .greet span {
        font-size: 30px;
    }
}

@media screen and (max-width: 960px) {
    .width {
        position: relative;
        width: 80% !important;
    }

    #main>div {
        width: 100%;
    }

    #main .main-mage {
        width: 100% !important;
        box-sizing: border-box;
        margin: auto !important;
    }
}

@media screen and (min-width: 1000px) {
    .Rotation {
        height: 100vh;
    }
}

@media screen and (max-width: 1120px) {
    .width {
        width: 960px;
    }

    #main .main-mage {
        float: left;
        width: 640px;
    }
}
